package com.zhanglijie.theory.produceandconsume;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/8/13 0013 19:43
 */
public class IdGenerate extends Thread{

    public static synchronized   long  getID() {
        return (ID++);
    }

    public static volatile long ID = 0;

}
